package com.shengyin.ec.service.cluster;

import java.util.List;

import com.shengyin.ec.model.entity.ChainCompany;
import com.shengyin.ec.model.entity.ClusterCompany;
import com.shengyin.ec.model.entity.Company;
import com.shengyin.ec.model.entity.Goods;
import com.shengyin.ec.model.entity.Orders;
import com.shengyin.ec.model.entity.Personal;

public interface ClusterService {

	
	/**
	 * 登录检测
	 * */
	public boolean checkCompanyUser(String username, String password);
	
	/**
	 * 集群企业
	 * */
	public void createClusterCompany(ClusterCompany clusterCompany);

	public void deleteClusterCompany(ClusterCompany clusterCompany);

	public void deleteClusterCompany(long id);

	public void modifyClusterCompany(ClusterCompany clusterCompany);

	public ClusterCompany getClusterCompany(ClusterCompany clusterCompany);
	
	public ClusterCompany getClusterCompanyByUsername(String clusterCompanyUsrname);


	public ClusterCompany getClusterCompany(long id);

	public List<ClusterCompany> getClusterCompanyList();

	public List<ClusterCompany> getClusterCompanyList(int start, int end);

	public List<ClusterCompany> getClusterCompanyListByKeyword(String keyword,
			int start, int end);

	/**
	 * 连锁经营店
	 */

	public List<ChainCompany> getChainCompanyList(String keyword, int start,
			int end);

	public List<ChainCompany> getChainCompanyList(int start, int end);

	/**
	 * 商品管理
	 * */

	public List<Goods> getClusterCompanyGoodsList(int offset, int pageSize);
	
	
	
	public List<Goods> getClusterCompanyGoodsList(long clusterCompanyid,int offset, int pageSize);


	public List<Goods> getClusterCompanyGoodsList(String[] paramValues,int searchType, int offset,int pageSize);

	public List<Goods> getClusterCompanyGoodsList(String[] paramValues);
	
    /*
     * 圣茵后台集群企业管理
     */
	
	public List<ClusterCompany> getCompanyList(int offset,int pageSize);
	
	public Long getTotal();
	
	
	public List<ClusterCompany> getCompany(int status,int offset,int pageSize);
	
	public List<ClusterCompany> getCompany(int status);
	
	public List<ClusterCompany> getCompanyListByName(String keyword,int offset,int pageSize);
	
	public List<ClusterCompany> getCompanyListByName(String keyword);
	
	/**
	 * 分页
	 * **/

	public Long getTotal(long clusterCompanyId);

	public void deleteSelectedCluster(String[] ids);


	public List<Personal> getCompanyByName(String username);

}
